package org.jeecg.modules.sssj.service;

import com.github.jeffreyning.mybatisplus.service.IMppService;
import org.jeecg.modules.sssj.entity.SssjFphz;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.sssj.vo.FphzVo;
import org.jeecg.modules.sssj.vo.FpzlhzVo;

import java.util.Date;
import java.util.List;

/**
 * @Description: 实时数据-发票汇总
 * @Author: jeecg-boot
 * @Date:   2022-06-13
 * @Version: V1.0
 */
public interface ISssjFphzService extends IMppService<SssjFphz> {

    void insertJxxFphz(String tynsrsbh, Date kssj, Date jssj);

    List<SssjFphz> selectJxxFphz(String tynsrsbh, Date kssj, Date jssj);

    void generateJxxFphz(String tynsrsbh, Date kssj, Date jssj);

    /**
     * 查询纳税人发票汇总
     * @param tynsrsbh
     * @param ssny
     * @param jxxlx
     * @return
     */
    FphzVo selectNsrFphz(String tynsrsbh, String ssny, String jxxlx);

    String getNsrMaxSsny(String tynsrsbh);

    /**
     * 查询纳税人各类发票汇总
     * @param tynsrsbh
     * @param ssny
     * @param jxxlx
     * @return
     */
    List<FpzlhzVo> selectNsrFpzlHz(String tynsrsbh, String ssny, String jxxlx);
}
